package com.learn.security.exception;

/**
 * 自定义异常
 */
public class UserNotExistException extends RuntimeException {

    public static final long serialVersionUID = -6112780192479692859L;

    private Integer id;

    public UserNotExistException() {
    }

    public UserNotExistException(String message) {
        super(message);
    }

    public UserNotExistException(Integer id) {
        super("不存在该用户");
        this.id = id;
    }

    public UserNotExistException(String message, Integer id) {
        super(message);
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
